package com.bitejiuyeke.job_publish.controller.params;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.PositiveOrZero;
import lombok.Data;
import org.springframework.stereotype.Component;

/**
 * @Author 比特就业课
 */
@Data
@Component
public class JobModifyDTO {

    @Positive(message = "请正确输入职位ID")
    private Long id;

    @NotBlank(message = "标题不能为空")
    private String title;

    @PositiveOrZero(message = "不能为负数")
    private Integer rewardUpper;

    @PositiveOrZero(message = "不能为负数")
    private Integer rewardLower;

    @PositiveOrZero(message = "工期必须大于等于0")
    private Integer timeLimit;

    @NotBlank(message = "职位描述不能为空")
    private String description;
}
